docs.rs failed to build qdrant_rest_client-0.0.4
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
qdrant_rest_client-0.1.1
A lightweight Qdrant client library for Rust
The key requirements for this unofficial client are two folds:
- Compiles into Wasm and runs under the WasmEdge Runtime.
- Supports basic CRUD operations for vector collections and points.
- Supports TLS for remotely installed Qdrant databases.
Quick start
Install WasmEdge and Rust tools.
curl -sSf https://raw.githubusercontent.com/WasmEdge/WasmEdge/master/utils/install.sh | bash -s -- --plugins wasmedge_rustls
source $HOME/.wasmedge/env
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup target add wasm32-wasi
Start a Qdrant instance in Docker using the quick start guide.
mkdir qdrant_storage
docker run -p 6333:6333 -p 6334:6334 \
-v $(pwd)/qdrant_storage:/qdrant/storage:z \
qdrant/qdrant
Build and run the examples
in this repo.
cd examples
cargo build --target wasm32-wasi --release
wasmedge target/wasm32-wasi/release/qdrant_examples.wasm
Examples
Here is the code from the examples/src/main.rs to show how to do CRUD operations.
// Create
let r = client.create_collection.await;
// Insert / Update
let mut points = Vec:: new;
points.push;
points.push;
points.push;
points.push;
points.push;
points.push;
let r = client.upsert_points.await;
println!;
// Retrieve #1
let ps = client.get_points.await;
println!;
// Retrieve Search
let q = vec!;
let r = client.search_points.await;
println!;
// Delete
let r = client.delete_points.await;
println!;
println!;